
PREFIX	:=cdp5200_tx_
BASE	:=orig fhrt fchrt

include ../mkfig.cfg
DPATH	:=/mnt/Data/data/ec97/nice
DEPEND	:=tx.makefile


TXPARA	:=$(PARA) hbox=5 wbox=2.4 xcur=1.2  clip=10  wg=1 va=1 \
		d1num=0.5 label1=TIME:\(s\)  \
		f2=-3295 d2=50 f2num=-2995 d2num=800 label2=OFFSET:\(m\)
			
MUTEPARA	:=key=tracf xmute=4,44,92,148,176,180 \
			tmute=2.75,2.35,1.85,1.2,0.6,0.0

	
cdp5200_%_orig.ps	:	$(DPATH)/cdp5200_%_orig.su $(DEPEND)
	sumute $(MUTEPARA) <$< | \
	supswigb $(TXPARA)  >$@


cdp5200_%hrt.ps	:	$(DPATH)/cdp5200_%hrt.su $(DEPEND) \
			cdp5200_tx.append
	supswigb $(TXPARA) <$< >$@
	suwind key=offset max=-2000 tmin=2.5 tmax=3 <$< |  \
	supswigb $(PARA) hbox=1.2 wbox=1  xcur=1  clip=4.8 wg=1 va=1 \
	f2num=-3000 d2num=800 d1num=0.3 >tmp1.ps
	psmerge translate=0,0 in=$@ \
	translate=0.26,3.6 in=tmp1.ps >tmp.ps
	@sed -n '1,/showpage/p' <tmp.ps >$@
	@sed -i '$$d' $@
	@cat >>$@ <cdp5200_tx.append
	@sed -n '/showpage/,$$p' tmp.ps >>$@
	@rm -f tmp.ps tmp1.ps


